#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include<QPropertyAnimation>
namespace Ui {
class BtForm;
}

class BtForm : public QWidget
{
    Q_OBJECT

public:
    explicit BtForm(QWidget *parent = nullptr);
    ~BtForm();
    void setIconAndText(const QString& icon,const QString& text,int id);
    int getPageId();
    void clearbackground();
    void showAnimation();
protected:

    void mousePressEvent(QMouseEvent *event);
signals:
    void btClick(int id);
private:
    Ui::BtForm *ui;
    int PageId;
    QPropertyAnimation*line1Animation;
    QPropertyAnimation*line2Animation;
    QPropertyAnimation*line3Animation;
    QPropertyAnimation*line4Animation;
};

#endif // BTFORM_H
